﻿<%@ Page Title="Home" Language="C#" MasterPageFile="~/Presentacion/Template.Master" AutoEventWireup="true" Inherits="_api_cargo_modificar2" Codebehind="Api_cargo_Modificar2.aspx.cs" %>
 
<asp:Content runat="server" ID="Content1" ContentPlaceHolderID="TituloModulo">
            <h2>Cargos</h2>
</asp:Content>
<asp:Content runat="server" ID="Content2" ContentPlaceHolderID="OpcionesModulo">
            <div id='cssmenu'>
        <ul>
           <li class='has-sub'><a href="API_cargo_Agregar.aspx"><span>Agregar</span></a>
              
           </li>
           <li class='has-sub'><a href="API_cargo_Consultar.aspx"><span>Consultar</span></a>
              
           </li>
           <li class='has-sub'><a href="API_cargo_Modificar.aspx"><span>Modificar</span></a>
              
           </li>
        </ul>
    </div>
</asp:Content>
<asp:Content runat="server" ID="Content3" ContentPlaceHolderID="ContenidoDelModulo">
    <form id="form1" runat="server">
        <script type="text/javascript">
            function RefreshUpdatePanel() {
                __doPostBack('<%= UpdatePanel1.ClientID %>', '');
    };
</script>
        <script type="text/javascript">
            function ShowMessage(myMessage) {
                alert(myMessage);
            }
</script>
<h2>Modificar cargo</h2>
			<div class="auto-style2">
                <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"></asp:ScriptManager>
                <div class="auto-style1">
                &nbsp;
                        &nbsp;Nombre&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:TextBox ID="CampoNombre" runat="server" Width="183px" Height="25px" onKeyUp="RefreshUpdatePanel();" AutoCompleteType="none" AutoPostBack="True" OnTextChanged="CampoNombre_TextChanged" CssClass="inputPersonalizado" Enabled="False"></asp:TextBox>
                &nbsp;&nbsp;&nbsp;
                </div>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="CampoNombre"/>
                    </Triggers>
                    <ContentTemplate>
                        <div class="auto-style1">
                            <asp:Label ID="LabelMensaje" runat="server"></asp:Label>
                            <br />
                            <br />
                            <div style="text-align:center">
                                <p style="padding:10px; display:inline-block">Activar cargo:</p>
                             <div class="onoffswitch" style="display:inline-block">
        <input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox"
        id="myonoffswitch" <%= this.InputValue %> /> 
        <label class="onoffswitch-label" for="myonoffswitch">
        <div class="onoffswitch-inner" ></div>
        <div class="onoffswitch-switch"></div> </label>
        </div>
                                </div>
                            <br />
                            <asp:Button ID="BotonCont" runat="server" CssClass="botonContinuar" OnClick="Button1_Click" onclientclick="return confirm('Confirmar modificación del cargo:')" Text="Aceptar" />
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Button ID="BotonReg" runat="server" CssClass="botonRegresar" OnClick="BotonReg_Click" Text="Cancelar" />
                        </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                        </div>
    </form>
</asp:Content>
<asp:Content ID="Content4" runat="server" contentplaceholderid="Style">
    <style type="text/css">
        .auto-style1 {
            text-align: center;
        }
        .auto-style2 {
            width: 102%;
            overflow: hidden;
            text-align: center;
        }
    </style>
</asp:Content>
